package com.lanou.dllo.findfood.dialog;

import android.app.ProgressDialog;
import android.content.Context;
import android.graphics.drawable.AnimationDrawable;
import android.os.Bundle;
import android.widget.ImageView;

import com.lanou.dllo.findfood.R;

/**
 * Created by dllo on 15/10/26.
 */
public class CookProgressDialog extends ProgressDialog{
    private ImageView animaotion;
    private  Context context;
    private String text;
   private int id;

    public CookProgressDialog(Context context, int id) {
        super(context);
        this.context = context;
        this.id = id;
        setCanceledOnTouchOutside(true);

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_animtion);
        animaotion = (ImageView) findViewById(R.id.animaImg);
        AnimationDrawable an= (AnimationDrawable) animaotion.getBackground();

        an.start();


    }








}
